#pragma once

#define SVC_MODE 0x00000000

#if defined(__VFP_FP__) && !defined(__SOFTFP__)
#define USE_FPU 1
#else
#define USE_FPU 0
#endif

#ifndef __ASSEMBLY__
struct exception_stack_frame
{
    void *r0;
    void *r1;
    void *r2;
    void *r3;
    void *r12;
    void *lr;
    void *pc;
    unsigned long psr;

#if USE_FPU
    unsigned long s[18]; /* fpu s0-15, fpscr */
#endif
};

struct pt_regs
{
    unsigned long r[8]; /* r4-r11 */

    struct exception_stack_frame hwsave;
};

#endif /* __ASSEMBLY__ */
